package com.church.action;

import java.util.Date;
import java.util.List;
import java.util.Map;

import com.church.base.common.util.ExtData;
import com.church.db.User;
import com.church.services.UserServices;
import com.opensymphony.xwork2.ActionContext;
import com.opensymphony.xwork2.ActionSupport;

public class GetUserList extends ChurchActionSupport {
	private UserServices userServices;
	private ExtData<User> allUserList;

	public UserServices getUserServices() {
		return userServices;
	}

	public void setUserServices(UserServices userServices) {
		this.userServices = userServices;
	}



	public ExtData<User> getAllUserList() {
		return allUserList;
	}

	public void setAllUserList(ExtData<User> allUserList) {
		this.allUserList = allUserList;
	}

	public String execute() {
		allUserList = new ExtData<User>();
		allUserList.setSuccess(true);
		allUserList.setRoot(userServices.getUserList());
		return SUCCESS;
	}

}
